From 38c88fdc0308122fcd0d2bddf841ad83e1e9af97 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Thu, 26 Feb 2015 20:33:16 +0530 Subject: [PATCH] Fix another place where assigned_name can be NULL --- babl/babl-model.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/babl/babl-model.c b/babl/babl-model.c index fec5209..dda1cbe 100644 --- a/babl/babl-model.c +++ b/babl/babl-model.c @@ -121,7 +121,8 @@ babl_model_new (void *first_argument, if (components >= BABL_MAX_COMPONENTS) { babl_log ("maximum number of components (%i) exceeded for %s", - BABL_MAX_COMPONENTS, assigned_name); + BABL_MAX_COMPONENTS, + assigned_name ? assigned_name : "(unnamed)"); } component [components++] = (BablComponent *) bablc; break; -- 2.30.2